
# PyMysqlMeta
import logging

host="1"
port="1"
user="1"
password="1"
db="1"

import  pymysql

def connect():
    try:
        conn=pymysql.connect(host=host,port=port,user=user,password=password,db=db,
                        charset="utf8mb4",cursorclass=pymysql.cursors.DictCursor
                        )
    except Exception as e:
        logging.error(e)

